package org.example.weboj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author wza
 * @since 2025-04-03
 */
@ApiModel(value = "Submissions对象", description = "")
@Data
public class Submissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Long problemId;

    private String language;

    private String code;

    private String status;

    @ApiModelProperty("in milliseconds")
    private Integer executionTime;

    @ApiModelProperty("in kilobytes")
    private Integer memoryUsed;

    private LocalDateTime submittedAt;

}
